package cn.maxwell.org.mapper;

import cn.maxwell.basic.mapper.BaseMapper;
import cn.maxwell.org.domain.Shop;
import cn.maxwell.org.dto.ShopDto;

import java.util.List;

/**
 *
 * mapper里面的方法要跟mapper.xml文件对应
 */
public interface ShopMapper extends BaseMapper<Shop> {

    //查询店铺名称和地址
    Shop loadByNameAndAddress(Shop shop);

    //批量添加
    void patchInsert(List<Shop> shop);

    //店铺数据可视化图表查询数据
    List<ShopDto> getCountByState();
}
